package br.ucb.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

import br.ucb.connection.FactoryConnection;

public class DaoBanco {

	public static void criaBanco(String[] sql) throws ClassNotFoundException, SQLException {
		Connection con = FactoryConnection.getInstance().criaConexaoFirst();
		Statement st = con.createStatement();
		for(int i = 0; i<sql.length; i++)  
            if(!sql[i].trim().equals(""))  
                st.execute(sql[i]);  
	}


}
